import * as Router from 'koa-router';
import { IRouterContext } from '../core/IRouterContext';
import powerService from '../service/PowerService';
let dingPowerCtr = new Router();
dingPowerCtr.prefix('/api/out')


dingPowerCtr.get('/test', async (ctx: IRouterContext, next: any) => {
    let message = await powerService.test();
    ctx.status = 200;
    ctx.body = message;
    await next()
})

export default dingPowerCtr;